package com.lin.server;

import com.lin.dataobject.Company;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by MYQ on 2017/10/28.
 */
public interface CompanyService {
    Company findOne(Integer id);

    List<Company> findAll(String name,  String startTime, String endTime);
    Page<Company> findAll(String name,  String startTime, String endTime, Pageable pageable);


    Company save(Company company);

    void del(Company company);

    Long getSize(String name,  String startTime, String endTime);

    List<Company> findAll();
}
